<h2>Klausur erstellen</h2>

<?php echo validation_errors(); ?>

<?php echo form_open('klausuren_controller/create') ?>

	<label for="Beschreibung">Beschreibung:</label>
	<input type="input" name="Beschreibung" /><br />

	<label for="Fach">Fach</label>
	<select name="Fach">
		<?php foreach ($faecher as $fach){
				echo '<option value='.$fach['Code'].' >'.$fach['Code'].'</option>';
		}
		?>
	</select><br />
	<label for="AnzahlFragen">Anzahl Fragen:</label>
	<input type="input" name="AnzahlFragen" /><br />
	<label for="KurseCode">Kurs:</label>
	<!--<input type="input" name="KurseCode" /><br />-->
	<select name="KurseCode">
		<?php foreach ($kurse as $kurs){
				echo '<option value='.$kurs['Code'].' >'.$kurs['Code'].'</option>';
		}
		?>
	</select><br />
	<label for="NotenCode">Noten Code:</label>
	<select name="NotenCode">
		<?php foreach ($noten as $note){
				echo '<option value='.$note['Code'].' >'.$note['Code'].'</option>';
		}
		?>
	</select><br />
	<label for="Dauer">Dauer:</label>
	<input type="input" name="Dauer" />
	<label for="Password">Password:</label>
	<input type="input" name="Password" /><br />
	<label for="Freigabe">Freigabe:</label>
	<input type="checkbox" name="Freigabe"/><br />
	<label for="ErgebnisFreigabe">Ergebnis Freigabe:</label>
	<input type="checkbox" name="ErgebnisFreigabe"/><br />
	<input class="art-button" type="submit" name="submit" value="Klausur erstellen" />

</form>